// $URL: http://mingw-lib.googlecode.com/svn/trunk/working/avcodec_to_widget_10/misc.h $
// $Rev: 322 $
// $Author: akio.miyoshi $
// $Date:: 2010-07-31 14:55:07 +0000#$

#ifndef MISC_H
#define MISC_H

#include "stable.h"

class T_Sleeper : public QThread
{
public:
    static void msleep(unsigned long a_msecs)
    {
        QThread::msleep(a_msecs);
    }
    static void usleep(unsigned long a_usecs)
    {
        QThread::usleep(a_usecs);
    }
};

#ifdef __GNUC__
#    define BOX_GCC_VERSION_AT_LEAST(x,y) (__GNUC__ > x || __GNUC__ == x && __GNUC_MINOR__ >= y)
#else
#    define BOX_GCC_VERSION_AT_LEAST(x,y) 0
#endif

#ifndef box_deprecated
#if BOX_GCC_VERSION_AT_LEAST(3,1)
#    define box_deprecated __attribute__((deprecated))
#else
#    define box_deprecated
#endif
#endif

#endif // MISC_H
